import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/layout/Layout'
import HelloWorld from '@/components/HelloWorld'

import HouseInfo from '@/views/houseManage/houseInfo'
import UserManage from '@/views/permissionManage/userManage'
import RoleManage from '@/views/permissionManage/roleManage'
import MenuManage from '@/views/permissionManage/menuManage'
import FcapNoContent from '@/views/permissionManage/fcapNoContent'
import BatchQueryNoContent from '@/views/permissionManage/batchQueryNoContent'
import BatchQueryNoContentHanzi from '@/views/permissionManage/batchQueryNoContentHanzi'
import QiBuZhong from '@/views/permissionManage/qiBuZhong'
import QiBuZhongAoMen from '@/views/permissionManage/QiBuZhongAoMen'
import QiBuZhongTeMa from '@/views/permissionManage/qiBuZhongTeMa'
import QiBuZhongAoMenTeMa from '@/views/permissionManage/QiBuZhongAoMenTeMa'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      redirect:'/permissionManage/batchQueryNoContent',
      children:[
        {
          path: '/hello',
          name: 'HelloWorld',
          component: HelloWorld
        },
        {
          path: '/permissionManage/fcapNoContent',
          name: 'FcapNoContent',
          component: FcapNoContent
        },   
        {
          path: '/permissionManage/batchQueryNoContent',
          name: 'BatchQueryNoContent',
          component: BatchQueryNoContent
        },   
        {
          path: '/permissionManage/qiBuZhong',
          name: 'QiBuZhong',
          component: QiBuZhong
        }, 
        {
          path: '/permissionManage/qiBuZhongTeMa',
          name: 'QiBuZhongTeMa',
          component: QiBuZhongTeMa
        },  
        {
          path: '/permissionManage/qiBuZhongAoMen',
          name: 'QiBuZhongAoMen',
          component: QiBuZhongAoMen
        }, 
        {
          path: '/permissionManage/qiBuZhongAoMenTeMa',
          name: 'QiBuZhongAoMenTeMa',
          component: QiBuZhongAoMenTeMa
        }
        // ,
        // {
        //   path: '/permissionManage/batchQueryNoContentHanzi',
        //   name: 'BatchQueryNoContentHanzi',
        //   component: BatchQueryNoContentHanzi
        // }
        // , 
        // {
        //   path: '/permissionManage/userManage',
        //   name: 'UserManage',
        //   component: UserManage
        // }, 
        // {
        //   path: '/permissionManage/roleManage',
        //   name: 'RoleManage',
        //   component: RoleManage
        // }, 
        // {
        //   path: '/permissionManage/menuManage',
        //   name: 'MenuManage',
        //   component: MenuManage
        // },
        // {
        //     path: '/houseManage/houseInfo',
        //     name: 'HouseInfo',
        //     component: HouseInfo
        // }      
      ]
    }
    // ,
    // {
    //   path:'*',
    //   redirect:'/permissionManage/fcapNoContent'
    // }
  ]
})
